﻿using System.Web.Mvc;
using OurSite.Business.Helper;

namespace OurSite.WebAdmin.Controllers
{
    [HandleError]
    public class BaseController : Controller
    {

        protected override void OnActionExecuting(ActionExecutingContext filterContext)
        {
            if (Request["code"] != null)
            {
                AEFacebook facebook = new AEFacebook();
                facebook.AccessTokenGet(Request["code"]);
            }
        }
    }
}
